/*  
 * @(#) DemoUserDaoImpl.java Create on 2012-5-9 下午5:09:27   
 *   
 * Copyright 2012 by xl.   
 */

package cn.com.demo.dao.impl;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
import org.springframework.stereotype.Component;

import cn.com.common.base.dao.BaseDaoImpl;
import cn.com.demo.dao.DemoUserDao;

/**
 * 
 * @author zhanghongliang
 * @date 2012-5-9
 */
@Component
public class DemoUserDaoImpl extends BaseDaoImpl implements DemoUserDao {
	@Resource
	JdbcTemplate jdbcTemplate;
	private NamedParameterJdbcTemplate namedJdbc;

	@PostConstruct
	public void init() {
		namedJdbc = new NamedParameterJdbcTemplate(jdbcTemplate);
	}

	@Override
	protected NamedParameterJdbcTemplate getNamedJdbc() {
		return namedJdbc;
	}
}
